from bs4 import BeautifulSoup

soup = BeautifulSoup(open('../素材/三国演义.html', 'r', encoding='UTF-8').read(), 'lxml')
# print(soup)

# li_list = soup.find('div', class_="book-mulu").ul.find_all('li')
a_list = soup.find('div', class_="book-mulu").ul.find_all('a')
# print(a_list)
for a in a_list:
    print(a['href'])
    print(a.string)